import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { IngressService } from './ingress.service';


@Controller('ingress')
export class IngressController {
  constructor(private readonly ingressService: IngressService) {}

      /* 获取应用路由列表 */
   @Post('/listIngress/:agentId')
   postListIngress() {
    return this.ingressService.postListIngress();
   }


   /* 查询当前应用路由 */
   @Post('/getIngress/:agentId')
   postGetIngress() {
    return this.ingressService.postGetIngress();
   }
   

   /* 删除当前应用路由 */
   @Post('/deleteIngress/:agentId')
   postDeleteIngress(@Body() body: any) {
    return this.ingressService.postDeleteIngress(body);
   }
}
